package com.bloomingstars.sqm.orm;

import java.sql.Connection;

/**
 * @author Emmanuele Sordini
 *
 */
public class ConnectionInfo {

    private Connection connection;
    private Exception stackTrace;
    private long birthTime;
    
    public ConnectionInfo(Connection c, Exception stackT, long birth) {
        connection = c;
        stackTrace = stackT;
        birthTime = birth;
    }

    public Connection getConnection() {
        return connection;
    }

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public Exception getStackTrace() {
        return stackTrace;
    }

    public void setStackTrace(Exception stackTrace) {
        this.stackTrace = stackTrace;
    }

    public void setBirthTime(long birthTime) {
        this.birthTime = birthTime;
    }

    public long getBirthTime() {
        return birthTime;
    }    
}
